<!DOCTYPE html>
<html>
    <head>
        <title></title>
    </head>
<body>
    <h1>一键会诊</h1>
	<form method="post" action="http://localhost/emergencyTp/public/index.php/pushmeet/pushmeet/push">
		<input type="checkbox" name="dep[]" value='2'/>内科
		<input type="checkbox" name="dep[]" value="user2"/>精神科
		<input type="checkbox" name="dep[]" value="user3"/>心脏科<br><br>

		<input type="text" name="text">

		<input type="submit" value="发送">
	</form>
<script>
	var ws = new WebSocket('ws://127.0.0.1:1234');
	ws.onopen = function(){
		var uid = 'uid2';
		ws.send(uid);
	};
	ws.onmessage = function(e){
		//alert(e.data);
		console.log(e.data);
		//window.location.reload();
	};
</script>
</body>
</html>